home *** CD-ROM | disk | FTP | other *** search
/ SGI Performance Co-Pilot 1.3 / SGI Performance Co-Pilot 1.3.iso / dist / dist6.4 / pcp.idb / usr / share / catman / u_man / cat3 / PMAPI / _pmcontrollog.z.z / _pmcontrollog.z / _pmcontrollog
Text File  |  1997-04-03  |  12KB  |  199 lines

  1.  
  2.  
  3.  
  4. ____PPPPMMMMCCCCOOOONNNNTTTTRRRROOOOLLLLLLLLOOOOGGGG((((3333))))                                              ____PPPPMMMMCCCCOOOONNNNTTTTRRRROOOOLLLLLLLLOOOOGGGG((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ____ppppmmmmCCCCoooonnnnttttrrrroooollllLLLLoooogggg - enable, disable or enquire about logging of performance
  10.      metrics
  11.  
  12. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ppppccccpppp////ppppmmmmaaaappppiiii....hhhh>>>>
  14.      ####iiiinnnncccclllluuuuddddeeee <<<<ppppccccpppp////iiiimmmmppppllll....hhhh>>>>
  15.      ####iiiinnnncccclllluuuuddddeeee <<<<ppppccccpppp////ppppmmmmlllloooogggg....hhhh>>>>
  16.  
  17.      iiiinnnntttt ____ppppmmmmCCCCoooonnnnttttrrrroooollllLLLLoooogggg((((iiiinnnntttt ffffdddd,,,, ppppmmmmRRRReeeessssuuuulllltttt ****rrrreeeeqqqquuuueeeesssstttt,,,, iiiinnnntttt ccccoooonnnnttttrrrroooollll,,,, iiiinnnntttt ssssttttaaaatttteeee,,,, iiiinnnntttt
  18.      ddddeeeellllttttaaaa,,,, ppppmmmmRRRReeeessssuuuulllltttt ********ssssttttaaaattttuuuussss))))
  19.  
  20.      cccccccc ............ ----llllppppccccpppp ----llllppppccccpppp____lllloooogggg
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      ____ppppmmmmCCCCoooonnnnttttrrrroooollllLLLLoooogggg may be used to enable or disable the archive logging for
  24.      particular performance metrics, as identified by the _r_e_q_u_e_s_t parameter;
  25.      see ppppmmmmFFFFeeeettttcccchhhh(3) for an explanation of the _p_m_R_e_s_u_l_t structure.
  26.  
  27.      The application must have previously issued a call to ____ppppmmmmCCCCoooonnnnnnnneeeeccccttttLLLLooooggggggggeeeerrrr(3)
  28.      to establish a control-port connection to the ppppmmmmllllooooggggggggeeeerrrr(1) instance to
  29.      whom the control request is to be directed, and _f_d (the result from
  30.      ____ppppmmmmCCCCoooonnnnnnnneeeeccccttttLLLLooooggggggggeeeerrrr(3)) identifies this connection.
  31.  
  32.      Within _r_e_q_u_e_s_t, only the details of the performance metrics and their
  33.      associated instances will be used, i.e.  the values of the metrics, if
  34.      any, will be ignored.  _r_e_q_u_e_s_t would typically be constructed as the
  35.      result of an earlier call to ppppmmmmFFFFeeeettttcccchhhh(3).  For metrics with a singular
  36.      value (having an instance domain of PPPPMMMM____IIIINNNNDDDDOOOOMMMM____NNNNUUUULLLLLLLL) the corresponding
  37.      _p_m_V_a_l_u_e_S_e_t should have the value one in the _n_u_m_v_a_l field and PPPPMMMM____IIIINNNN____NNNNUUUULLLLLLLL
  38.      as the _i_n_s_t field of the single _p_m_V_a_l_u_e supplied.  If multiple explicit
  39.      instances are to be logged, the _n_u_m_v_a_l field of the _p_m_V_a_l_u_e_S_e_t should
  40.      contain the number of instances supplied and the _i_n_s_t fields of the
  41.      _p_m_V_a_l_u_e structures should contain specific instance identifiers (which
  42.      may not have the reserved value PPPPMMMM____IIIINNNN____NNNNUUUULLLLLLLL).
  43.  
  44.      If the _n_u_m_v_a_l field within any of the _p_m_V_a_l_u_e_S_e_t structures in _r_e_q_u_e_s_t
  45.      has a value of zero, it indicates that all available instances of the
  46.      metric should be used.  Enumeration of the instance domain is deferred
  47.      until the logger fetches the metric prior to witing it to the log, rather
  48.      than being performed when the ____ppppmmmmCCCCoooonnnnttttrrrroooollllLLLLoooogggg request is received.  This is
  49.      useful for metrics with instance domains that change over time.  It is an
  50.      error to specify _n_u_m_v_a_l equal to zero if the corresponding metric has a
  51.      singular value (no instance domain).
  52.  
  53.      There are several sorts of logging control available, namely mandatory or
  54.      advisory, as defined by the _c_o_n_t_r_o_l argument, and on, off or maybe as
  55.      defined by the _s_t_a_t_e argument. These different types of control may be
  56.      used to ensure that some performance metrics can be guaranteed to always
  57.      be in the log, while others may be dynamically enabled or disabled as
  58.      determined by the level and type of system activity.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ____PPPPMMMMCCCCOOOONNNNTTTTRRRROOOOLLLLLLLLOOOOGGGG((((3333))))                                              ____PPPPMMMMCCCCOOOONNNNTTTTRRRROOOOLLLLLLLLOOOOGGGG((((3333))))
  71.  
  72.  
  73.  
  74.      The actual action to be performed is defined by the combination of
  75.      _c_o_n_t_r_o_l and _s_t_a_t_e as follows.  If _c_o_n_t_r_o_l is PPPPMMMM____LLLLOOOOGGGG____MMMMAAAANNNNDDDDAAAATTTTOOOORRRRYYYY and _s_t_a_t_e
  76.      is PPPPMMMM____LLLLOOOOGGGG____OOOONNNN, then logging is enabled.  If _c_o_n_t_r_o_l is PPPPMMMM____LLLLOOOOGGGG____MMMMAAAANNNNDDDDAAAATTTTOOOORRRRYYYY
  77.      and _s_t_a_t_e is PPPPMMMM____LLLLOOOOGGGG____OOOOFFFFFFFF, then logging is disabled.  If _c_o_n_t_r_o_l is
  78.      PPPPMMMM____LLLLOOOOGGGG____MMMMAAAANNNNDDDDAAAATTTTOOOORRRRYYYY and _s_t_a_t_e is PPPPMMMM____LLLLOOOOGGGG____MMMMAAAAYYYYBBBBEEEE, then subsequent advisory
  79.      controls will be honored.  If the logging state prior to the request was
  80.      mandatory (on or off), the state is changed to advisory off.  If the
  81.      logging state was already advisory (either on or off), it remains
  82.      unchanged.  If _c_o_n_t_r_o_l is PPPPMMMM____LLLLOOOOGGGG____AAAADDDDVVVVIIIISSSSOOOORRRRYYYY and the last mandatory control
  83.      for the metric was PPPPMMMM____LLLLOOOOGGGG____MMMMAAAAYYYYBBBBEEEE, then logging is enabled or disabled as
  84.      specified by the _s_t_a_t_e argument, i.e. PPPPMMMM____LLLLOOOOGGGG____OOOONNNN or PPPPMMMM____LLLLOOOOGGGG____OOOOFFFFFFFF.  When the
  85.      arguments _s_t_a_t_e and _c_o_n_t_r_o_l specify a request to change the logging
  86.      behavior, the argument _d_e_l_t_a defines the logging interval in milliseconds
  87.      to be applied to all metrics and instances identified in _r_e_q_u_e_s_t.
  88.  
  89.      The result argument _s_t_a_t_u_s returns the current logging state for each of
  90.      the nominated performance metrics.  There is a 1:1 correspondence between
  91.      the elements of _r_e_q_u_e_s_t and _s_t_a_t_u_s.  For metrics in _r_e_q_u_e_s_t that have
  92.      _p_m_V_a_l_u_e_S_e_ts with _n_u_m_v_a_l equal to zero, the corresponding _p_m_V_a_l_u_e_S_e_t in
  93.      _r_e_s_u_l_t will contain a value for each available instance at the time of
  94.      the call.  Each metric value in _s_t_a_t_u_s will have the current logging
  95.      state encoded in it.  The detailed outcome of the operation for each
  96.      metric can be determined by comparing these values to that requested via
  97.      _c_o_n_t_r_o_l, _s_t_a_t_e and _d_e_l_t_a.
  98.  
  99.      Macros defined in <<<<ppppccccpppp////iiiimmmmppppllll....hhhh>>>> may be used to extract the state and
  100.      logging interval from the returned metric values.  PPPPMMMMLLLLCCCC____GGGGEEEETTTT____OOOONNNN returns
  101.      true if logging is on, or false if it is off; PPPPMMMMLLLLCCCC____GGGGEEEETTTT____MMMMAAAANNNNDDDD returns true
  102.      if logging is mandatory, or false if it is advisory; PPPPMMMMLLLLCCCC____GGGGEEEETTTT____IIIINNNNLLLLOOOOGGGG
  103.      returns true if the metric has been logged at least once, or false
  104.      otherwise; PPPPMMMMLLLLCCCC____GGGGEEEETTTT____AAAAVVVVAAAAIIIILLLL returns true if the metric was available from
  105.      its source the last time it was supposed to be logged, or false if it was
  106.      unavailable; and PPPPMMMMLLLLCCCC____GGGGEEEETTTT____DDDDEEEELLLLTTTTAAAA returns the current logging interval for
  107.      the metric (in milliseconds).  PPPPMMMMLLLLCCCC____MMMMAAAAXXXX____DDDDEEEELLLLTTTTAAAA defines the greatest _d_e_l_t_a
  108.      that can be returned in an encoded metric value.
  109.  
  110.      As a special case, when _c_o_n_t_r_o_l is PPPPMMMM____LLLLOOOOGGGG____EEEENNNNQQQQUUUUIIIIRRRREEEE, _s_t_a_t_e and _d_e_l_t_a are
  111.      ignored, and _s_t_a_t_u_s returns the current logging state of the nominated
  112.      performance metrics (this variant makes no changes to the logging state).
  113.  
  114.      If the value of the logging interval is 0, either for _d_e_l_t_a in a request
  115.      to change state to PPPPMMMM____LLLLOOOOGGGG____OOOONNNN, or encoded in the value returned from
  116.      PPPPMMMM____LLLLOOOOGGGG____EEEENNNNQQQQUUUUIIIIRRRREEEE, then this corresponds to the special ``once only''
  117.      logging of metrics that appear once in the archive log, and are never
  118.      logged again.
  119.  
  120.      ____ppppmmmmCCCCoooonnnnttttrrrroooollllLLLLoooogggg returns zero on success.
  121.  
  122. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  123.      PPPPMMMMAAAAPPPPIIII(3), ppppmmmmFFFFeeeettttcccchhhh(3), ppppmmmmllllcccc(1), ppppmmmmllllooooggggggggeeeerrrr(1) and ____ppppmmmmCCCCoooonnnnnnnneeeeccccttttLLLLooooggggggggeeeerrrr(3).
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ____PPPPMMMMCCCCOOOONNNNTTTTRRRROOOOLLLLLLLLOOOOGGGG((((3333))))                                              ____PPPPMMMMCCCCOOOONNNNTTTTRRRROOOOLLLLLLLLOOOOGGGG((((3333))))
  137.  
  138.  
  139.  
  140. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  141.      PPPPMMMM____EEEERRRRRRRR____TTTTOOOOOOOOSSSSMMMMAAAALLLLLLLL
  142.           The number of metrics in _r_e_q_u_e_s_t is less than one.
  143.  
  144.      PPPPMMMM____EEEERRRRRRRR____VVVVAAAALLLLUUUUEEEE
  145.           One or more of the _p_m_V_a_l_u_e_S_e_ts in _r_e_q_u_e_s_t had _n_u_m_v_a_l (the number of
  146.           instances) less than one.
  147.  
  148.      EEEEIIIINNNNVVVVAAAALLLL
  149.           An invalid combination of _c_o_n_t_r_o_l and _s_t_a_t_e was specified, or _d_e_l_t_a
  150.           was negative.
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.